#include "SymbolTable.h"
#include "wfx.h"


CSymbolTable::CSymbolTable()
{
	LOG("initilaize CSymbolTable");
}

CSymbolTable::~CSymbolTable()
{
	LOG("Destruct CSymbolTable");
}

void CSymbolTable::registerSymbol( const std::string& strName, int num )
{
	this->m_symbol[strName] = num;
}

int CSymbolTable::getSymbol( const std::string& strName )
{
	if (this->m_symbol.find(strName) == this->m_symbol.end())
	{
		return 0;

	}
	else
	{
		return this->m_symbol[strName];
	}
}